#ifndef _GLOBALVARIABLES_H
#define _GLOBALVARIABLES_H

//main
#define APPTITLE L"GAME CONTRA"
#define SCREEN WS_OVERLAPPEDWINDOW

//map
#define FULLSCREEN 0
#define FRAME_RATE 10
#define FRAMEWIDTH 64
#define FRAMEHEIGHT 64
#define MAPWIDTH 104
#define MAPHEIGHT  7
#define GAMEWORLDWIDTH (FRAMEWIDTH*MAPWIDTH)
#define GAMEWORLDHEIGHT (FRAMEHEIGHT*MAPHEIGHT + 32)
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480

#define VIEW_PORT_Y  SCREEN_HEIGHT

//Enemy

#define MARK1 1100
#define MARK2 1600
#define MARK3 2368
#define MARK4 2800
#define MARK5 3824
#define GROUNDY_ENEMY 280
#define SPEED_ENEMY 2.0f

// contra
#define JUMP_VELOCITY_BOOST -8.8f
#define FALLDOWN_VELOCITY_DECREASE -0.3f
#define MOVING_SPEED 3.0f
#define GROUNDY FRAMEHEIGHT * 5.0f
#define TIMESTART 100
#define CONTRAWIDTH 70
#define CONTRAHEIGHT 96
#define CONTRABULLETVX 7.0f
#define CONTRABULLETVY 7.0f
#define BULLETTIMEALIVE 2000.0f

enum Enemy{Turret, SuperTurret};
enum Object{PowerUp, WeaponCapsule, Bullet};

#pragma region DANG

//gioi han duoi
#define LIMIT_Y 0.0f

//gioi han boi chieu doc
#define LIMIT_SWIM_Y FRAMEHEIGHT * 2.0f

//gioi han boi chieu ngang
#define LIMIT_SWIM_X FRAMEWIDTH * 54.0f

#define FALL_DELAY_TIME 200

#pragma endregion

#endif